From 4fb2fc7d89a3022220fc466adbae1d95abab119b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 28 Jun 2017 11:17:03 +0200 Subject: [PATCH] drawingarea: Remove useless line from code example backgrounds are drawn automatically now. --- gtk/gtkdrawingarea.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c index cc2c94ae6e..12d46e7475 100644 --- a/gtk/gtkdrawingarea.c +++ b/gtk/gtkdrawingarea.c @@ -80,8 +80,7 @@ static GParamSpec *props[LAST_PROP] = { NULL, }; * * Note that GDK automatically clears the exposed area before causing a * redraw, and that drawing is implicitly clipped to the exposed - * area. If you want to have a theme-provided background, you need - * to call gtk_render_background() in your ::draw method. + * area. * * ## Simple GtkDrawingArea usage * @@ -96,8 +95,6 @@ static GParamSpec *props[LAST_PROP] = { NULL, }; * * context = gtk_widget_get_style_context (GTK_WIDGET (area)); * - * gtk_render_background (context, cr, 0, 0, width, height); - * * cairo_arc (cr, * width / 2.0, height / 2.0, * MIN (width, height) / 2.0, -- 2.30.2